import request from '@/utils/request'
// -------- 提现设置 --------

let BASE_ADDRESS = 'base/config'


// 提现设置查询接口
export function getConfigWithdrawSettingApi(params) {
    return request({
        url: `${BASE_ADDRESS}/withdrawSetting`,
        method: "get",
        params
    })
}

//  提现设置修改接口
export function getConfigAddOrUpdateWithdrawApi(data) {
    return request({
        url: `${BASE_ADDRESS}/addOrUpdateWithdraw`,
        method: "post",
        data
    })
}


// 发票设置查询接口
export function getlistInvoiceApi(params) {
    return request({
        url: `${BASE_ADDRESS}/listInvoice`,
        method: "get",
        params
    })
}
// 发票设置修改接口
export function editlistInvoiceApi(data) {
    return request({
        url: `base/config/edit`,
        method: "put",
        data
    })
}

// 充值设置查询接口
export function getdepositVoucherApi(params) {
    return request({
        url: `financial/depositVoucher/list`,
        method: "get",
        params
    })
}
// 充值设置修改接口
export function editlistInvoisceApi(data) {
    return request({
        url: `/financial/depositVoucher/edit`,
        method: "put",
        data
    })
}
// 充值设置新增接口
export function addlistInvoisceApi(data) {
    return request({
        url: `/financial/depositVoucher/add`,
        method: "post",
        data
        
    })
}
// 充值设置删除接口
export function removelistInvoisceApi(data) {
    return request({
        url: `/financial/depositVoucher/remove`,
        method: 'delete',
        data
    })
}

// 咨询设置查询
export function getConfigListConsultApi(params) {
    return request({
        url: `${BASE_ADDRESS}/listConsult`,
        method: "get",
        params
    })
}

//咨询设置修改
export function getConfigEditApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

// 查询自定义金额参数
export function getConfigDepositSettingApi() {
    return request({
        url: `${BASE_ADDRESS}/depositSetting`,
        method: "get",
    })
}

// 自定义金额设置参数 /base/config/edit
export function editConfigApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}
